
/*
            用户类
 */

public class User {
    private String loginName;  //用户名
    private String password;   //密码

    //无参构造
    public User() {
    }
    //有参构造
    public User(String loginName, String password) {
        this.loginName = loginName;
        this.password = password;
    }

    //get，set方法
    public String getLoginName() {

        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
